package com.thoughtworks.Chapter3;

import com.thoughtworks.Common.Apple;

import java.util.Comparator;

/**
 * Created by yrzhang on 10/8/16.
 */
public class Sorting {

    public static class AppleComparator implements Comparator<Apple> {

        @Override
        public int compare(Apple o1, Apple o2) {
            return o1.getWeight().compareTo(o2.getWeight());
        }
    }




}
